package cn.wolfcode.car.service.impl;

import cn.wolfcode.car.domain.Type;
import cn.wolfcode.car.mapper.TypeMapper;
import cn.wolfcode.car.service.ITypeservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TypeServiceImpl implements ITypeservice {
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public List<Type> list() {
        return typeMapper.selectAll();
    }
}
